/**********************************************************************************************************************
 *
 * Project:    mGameEngine
 * File:       scenegamestate.cpp
 * Author:     karooolek
 * Created on: 2009-04-09
 *
 **********************************************************************************************************************/

#include "scenegamestate.h"

namespace mGameEngine
{
namespace Game
{

SceneGameState::SceneGameState() : _scene(NULL)
{
}

SceneGameState::SceneGameState(Scene *scene) : _scene(scene)
{
}

SceneGameState::~SceneGameState()
{
    if(_scene)
    {
        delete _scene;
    }
}

void SceneGameState::begin()
{
}

void SceneGameState::end()
{
}

void SceneGameState::idle()
{
    if(_scene)
    {
        _scene->idle();
    }
}

void SceneGameState::draw() const
{
    if(_scene)
    {
        _scene->draw();
    }
}

}
}

